<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
        <meta name="viewport"
            content="width=device-width, initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

        <link rel="stylesheet" type="text/css" media="screen"
            href="/tdg/mocks/dist/ionicons/2.0.1/css/ionicons.min.css">

        <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
        <script type="text/javascript" src="./layui/layui.js"></script>
        <script src="/tdg/mocks/dist/wx/jweixin-1.2.0.js"></script>
        <script src="/tdg/mocks/dist/jquery/3.2.1/jquery.min.js"></script>
        <script src="JS/public.js"></script>
        <script src="JS/Up.js"></script>

        <link href="./layui/css/layui.css" rel="stylesheet" type="text/css" />
        <link rel="stylesheet" type="text/css" media="screen"
            href="/tdg/mocks/dist/ionicons/2.0.1/css/ionicons.min.css">
        <link rel="stylesheet" type="text/css" href="CSS/up.css">
        <title>精电产线员工上线-一人多机版本</title>
    </head>

    <body>
        <div class="fixed-header">
            <div class="layui-collapse" onclick="onlineCollapse()">
                <div class="layui-colla-item">
                    <h1 class="layui-colla-title" id="h3">
                    </h1>
                    <div id="div222">
                        <label>班别:</label>
                        <select id="bb" onchange="changeBB(this.id)">
                            <option>请选择</option>
                            <option>白班</option>
                            <option>晚班</option>
                        </select>
                    </div>
                </div>
            </div>

        </div>        

        <div class="scrollable-content" id="parent">
            <div id="onlineStaffInfo">
                <div id="divS">部门:
                    <select id="bmList" onchange="changeBM(this.id)">
                        <option>请选择部门</option>
                    </select>
                </div>
                <table class="onlineInfo" id="onlineTab">
                    <thead>
                        <tr style="background-color: #eee;">
                            <td style="width: 5%;"></td>
                            <td style="width: 22%;">工号</td>
                            <td style="width: 17%;">姓名</td>
                            <td style="width: 37%;">当前工单</td>
                            <td style="width: 19%;">工段</td>
                        </tr>
                    </thead>
                    <tbody id="allPerson">
                    </tbody>
                </table>
                
            </div>
            
            <div class="center">
                <div class="box01">
                    <button id="reset1" class="resetBtn" onclick="resetClick(this.id)">重置</button>
                    &nbsp;
                    <input type="text" id="gdh" placeholder="请输入工单号" autocomplete="off" oninput="suggestGD(this.id)" />
                    &nbsp;
                    <button id="search1" class="searchBtn" onclick="searchClick(this.id)">搜索</button>
                    <button id="gdxxyc1" class="StretchBtn"  onclick="hideClick(this.id)">收起</button>
                </div>

                <div id="gdxx1" style="display: block;">
                    <select id="gdList" onchange="changeF(this.id)">
                        <option>-----请选择工单-----</option>
                    </select>
                    <br>

                    <span class="layui-badge-dot layui-bg-black"></span> 生&nbsp;产&nbsp;线&nbsp;码
                    <input id="scxm" style="font-size: large;" readonly="readonly" />
                    <br>
                    <span class="layui-badge-dot layui-bg-black"></span> 产&nbsp;品&nbsp;编&nbsp;码
                    <input id="cpbm" style="font-size: large;" readonly="readonly" />
                    <br>
                    <span class="layui-badge-dot layui-bg-black"></span> </i>产&nbsp;品&nbsp;描&nbsp;述
                    <input id="cpms" style="font-size: large;" readonly="readonly" />
                    <br>
                    <span class="layui-badge-dot layui-bg-black"></span> </i>工&nbsp;单&nbsp;数&nbsp;量
                    <input id="gdsl" style="font-size: large;" readonly="readonly" />
                    <br>
                    <span class="layui-badge-dot layui-bg-black"></span> </i>选&nbsp;择&nbsp;工&nbsp;段
                    <select id="gydList" onchange="changeGYD(this.id)">
                        <option>请选择工艺段</option>
                    </select>
                    <input id="rptid" style="font-size: large;" readonly="readonly" type="hidden" />
                    <br>
                </div>

                <div class="zhezhao" id='zhezhao' style="display: none;">
                    <div class="tankuang">
                        <div id="header">
                            <br />
                            <h3 id="bgjs"><i class="icon ion-speedometer"></i>报工产能</h3>
                            <br />
                            工&nbsp;单:<input id="gdh_" style="font-size: large;" readonly="readonly">
                            线&nbsp;码:<input id="scxm_" style="font-size: large;" readonly="readonly">
                            工&nbsp;段:<input id="gydList_" style="font-size: large;" readonly="readonly">
                            <input id="bb_" style="font-size: large;" readonly="readonly" type="hidden">
                            <hr>
                            <i class="icon ion-edit"></i>&nbsp;实&nbsp;际&nbsp;产&nbsp;量:
                            <input id="sjcl" type="text" style="font-size: large;" value="" onkeyup="value=value.replace(/[^\d]/g,'')">
                            <br /><br />
                            <div style="display: flex;">
                                <button id='sjcl1' onclick="sjclok()">确认下线</button>
                            </div>
                        </div>
                    </div>
                </div>


               <div id="qh" style="display:none;">
                    <div class="box01">
                        <button id="reset2" class="resetBtn" onclick="resetClick(this.id)">重置</button>
                        &nbsp;
                        <input type="text" id="gdh2" placeholder="请输入目标工单号" autocomplete="off"oninput="suggestGD(this.id)" />
                        &nbsp;
                        <button id="search2" class="searchBtn" onclick="searchClick(this.id)">搜索</button>
                        <button id="gdxxyc2" class="StretchBtn" onclick="hideClick(this.id)">收起</button>
                    </div>

                    <div id="gdxx2" style="display: block;">
                        <select id="gdList2" onchange="changeF(this.id)">
                            <option>---请选择目标工单---</option>
                        </select>
                        <br>
                        <span class="layui-badge-dot layui-bg-black"></span> 生&nbsp;产&nbsp;线&nbsp;码
                        <input id="scxm2" style="font-size: large;" readonly="readonly" />
                        <br>
                        <span class="layui-badge-dot layui-bg-black"></span> 产&nbsp;品&nbsp;编&nbsp;码
                        <input id="cpbm2" style="font-size: large;" readonly="readonly" />
                        <br>
                        <span class="layui-badge-dot layui-bg-black"></span> </i>产&nbsp;品&nbsp;描&nbsp;述
                        <input id="cpms2" style="font-size: large;" readonly="readonly" />
                        <br>
                        <span class="layui-badge-dot layui-bg-black"></span> </i>工&nbsp;单&nbsp;数&nbsp;量
                        <input id="gdsl2" style="font-size: large;" readonly="readonly" />
                        <br>
                        <span class="layui-badge-dot layui-bg-black"></span> </i>选&nbsp;择&nbsp;工&nbsp;段
                        <select id="gydList2" onchange="changeGYD(this.id)">
                            <option>请选择工艺段</option>
                        </select>
                        <br>
                        <button id="qrqh" type="button" class="layui-btn layui-btn-normal"
                            onclick="confirmDownByQHClick()">确认切换</button>
                        <button id="qxqh" type="button" class="layui-btn layui-btn-warm"
                            onclick="qhgdCancelClick()">取消</button>
                    </div>
                </div>
            </div>
            
            <div>
                <table id="tab"">
                    <thead>
                    <tr style="height: 15%;">
                        <th style="width: 14%;">
                         <button id="allgltb"  class="layui-btn" style="opacity: 1;" onclick="ConfirmDownByCheck()">勾选下线</button>
                        </th>
                        <th style="width: 14%;">工号</th>
                        <th style="width: 14%;">姓名</th>
                        <th style="width: 22%;">上线工单</th>
                        <th style="width: 22%;">上线时间</th>
                        <th style="width: 14%;">操作</th>
                    </tr>
                    </thead>
                    <tbody id="tabT"/>					
                </table>
            </div>
            
        </div>

        <div class="fixed-footer">
            <div class="message">
                工号：<input id="codeValue" style="font-size: larger;width: 30%;"/>
                &nbsp;
                姓名：<input id="personName" style="font-size: larger;width: 30%;"/>
                <input id="personState" style="font-size: larger;" type="hidden" readonly="readonly"/>
            </div>
            <br>
            <div style="display: flex;">
                <button id="scanQRCode" class="bottomBtn" onclick="scanQRCodeClick(this.id)"> 扫码 </button>
                <button id="scanQRCodeUp" class="bottomBtn" onclick="ConfirmUpClick(this.id)"> 上线 </button>
                <button id="scanQRCodeDown" class="bottomBtn" onclick="ConfirmDownByGD(this.id)"> 整体<br>下线 </button>
                <button id="scanQRCodeShuffle" class="bottomBtn" onclick="qhgdClick()"> 勾选<br>切换 </button>
            </div>
        </div>
    </body>

</html>
